package com.hualan.service.service.service;

import com.hualan.mapper.HuifudayiMapper;
import com.hualan.pojo.Huifudayi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HuifudayiServiceImpl implements HuifudayiService{
    @Autowired
    private HuifudayiMapper huifudayiMapper;

    public List<Huifudayi> listById(Integer pid) {
        return huifudayiMapper.listById(pid);
    }

    public Integer add(Huifudayi huifudayi) {
        return huifudayiMapper.add(huifudayi);
    }

    public List<Huifudayi> listByPids(List<Integer> pids) {
        return huifudayiMapper.listByPids(pids);
    }

    public List<Huifudayi> listToMe(Integer uid) {
        return huifudayiMapper.listToMe(uid);
    }
}
